From 1001ea389b83049a94a2934974694b6078f3699b Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 19 May 2005 01:39:03 +0000 Subject: [PATCH] Warn if source not WGS 84. --- ozi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ozi.c b/ozi.c index d9471e5cd..39b6e45bb 100644 --- a/ozi.c +++ b/ozi.c @@ -4,7 +4,7 @@ As described in OziExplorer Help File - Copyright (C) 2002 Robert Lipe, robertlipe@usa.net + Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -548,6 +548,13 @@ data_read(void) ozi_objective = wptdata; } } + + if (linecount == 2) { + if (case_ignore_strncmp(buff, "WGS 84", 6)) { + warning(MYNAME "Only supports reading WGS 84 datum, not '%s'\n", buff); + } + } + if ((strlen(buff)) && (strstr(buff, ",") != NULL)) { wpt_tmp = waypt_new(); -- 2.30.2